<include file="../header" />
<body class="J_scroll_fixed">
    <script>

      

    </script>
    <div class="wrap J_check_wrap">
        <form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('warning/index')}">
            <div class="search_type cc mb10">
                <div class="mb10">
                <span class="mr20">
                            状态：{:getEnumSelectWidget($warningStatus, 'status', $status, 1)}
                    <button class="btn btn-primary">搜索</button>
                    <a class="btn" href="{:U('warning/index')}">重置</a>
                </span>
                </div>
            </div>
        </form>
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('warning/index')}">报警信息</a></li>
        </ul>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>报警区域</th>
                    <th>太阳板序列号</th>
                    <th>异常类型</th>
                    <th>维修人员</th>
                    <th>状态</th>
                    <th>创建时间</th>
                    <th>指派维修人员</th>
                </tr>
            </thead>
            <tbody>

            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.warning_id}</td>
                    <td>{$vo.area_name}</td>
                    <td>{$vo.number}</td>
                    <td>{:getEnumString($warningType, $vo['warning_type'])}</td>
                    <td>{$vo.service_name}</td>
                    <td>{:getEnumString($warningStatus, $vo['status'])}</td>
                    <td>{$vo.create_time}</td>   
                    <td>
                <if condition='$vo["status"] eq $warningStatus["WAITING"]'>
                    <a href='{:U("warning/selectService",array("id"=>$vo["warning_id"]))}'>指派</a>
                    <else/>
                    已指派
                </if>
                        
                    </td>

                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>